#!/usr/bin/python

import sys

a=3

b="kewl"

if a>2:
  print "A je vece od 2"

if a>2 and isinstance(b,float):
  print "A je vece od 2 i b je float"
elif isinstance(b,str):
  print "B je string!"

for i in range(0,10):
  print("%d" % i)

for i in range(1,11):
  for j in range(1,11):
    sys.stdout.write("%4d" % (i*j))
  sys.stdout.write("\n")

print

i,j=1,1

while i < 11:
  while j < 11:
    sys.stdout.write("%4d" % (i*j))
    j+=1
  j=1
  sys.stdout.write("\n")
  i+=1
  

